package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.ProductBean;

import java.time.LocalDate;
import java.util.List;

public interface IProductService {
    void add(ProductBean productBean);

    void del(Integer id);

    void update(Integer id, Integer price);

    List<ProductBean> findAll();

    ProductBean findById(Integer id);




    IPage<ProductBean> findByItem(Integer pageNO, String name, LocalDate startDate, LocalDate endDate);
}
